package com.liuweiheng.cloudproviderpayment8002.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 实体类：用户
 *
 * @author lwh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("用户实体类")
public class User implements Serializable {

    @ApiModelProperty("主键id")
    private Integer id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("用户状态")
    private Integer state;

    @ApiModelProperty("盐，后端处理")
    private String salt;

    @ApiModelProperty("角色集合")
    private List<Role> roles;

}
